package com.foreveross.util.redis;

import com.foreveross.constant.Constants;

public class RedisKeyTools {
	
	/**
	 * 创建  log 成功key
	 * @param channel
	 * @param client
	 * @return
	 */
	public static String retrieveProxyIpSuccessLogKey(String channel,String client){
		//TIANXUN_Clientid_HOTPOOL_SUCCESS
		String key=channel+Constants.KEY_SPLIT+client+Constants.KEY_SPLIT+Constants.HOTPOOL+Constants.KEY_SPLIT+Constants.SUCCESS;
		return key;
	}
	
	/**
	 * 
	 * @param channel
	 * @param client
	 * @return
	 */
	public static String retrieveProxyIpFailLogKey(String channel,String client){
		//TIANXUN_Clientid_HOTPOOL_FAIL
		String key=channel+Constants.KEY_SPLIT+client+Constants.KEY_SPLIT+Constants.HOTPOOL+Constants.KEY_SPLIT+Constants.FAIL;
		return key;
	}
	
	public static String generateHotPoolKey(String channel){
		////TIANXUN_HOTPOOL_SUCCESS
		String key=channel+Constants.KEY_SPLIT+Constants.HOTPOOL+Constants.KEY_SPLIT+Constants.SUCCESS;
		return key;
	}
	
}
